﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<volva.Models.RegisterModel>" %>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Nýskráning</h1>
    <p>
        Nota skal formið hér fyrir neðan til að skrá inn notandaupplýsingar
    </p>
    <p>
        Lykilorð þurfa að vera að minnsta kosti <%= Html.Encode(ViewData["PasswordLength"]) %> stafir að lengd.
    </p>

    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Nýskráning mistóks. Vinsamlegast lagið villurnar og reynið aftur.") %>
        <div>
            <fieldset>
                <legend>Notandaupplýsingar</legend>
                
                <div class="editor-label">
                    Notandanafn
                </div>
                <div class="editor-field">
		    <input id="UserName" name="UserName" type="text" class="text" value="" />
                    <%= Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                
                <div class="editor-label">
			Netfang
                </div>
                <div class="editor-field">
		    <input id="Email" name="Email" type="text" class="text" value="" />
                    <%= Html.ValidationMessageFor(m => m.Email) %>
                </div>
                
                <div class="editor-label">
                    Lykilorð
                </div>
                <div class="editor-field">
		    <input id="Password" name="Password" type="password" class="text" />
                    <%= Html.ValidationMessageFor(m => m.Password) %>
                </div>
                
                <div class="editor-label">
                    Lykilorð aftur
                </div>
                <div class="editor-field">
		    <input id="ConfirmPassword" name="ConfirmPassword" type="password" class="text" />
                    <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </div>
                
                <p>
                    <input type="submit" value="Nýskrá" class="btn" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
